package com.moshang.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.moshang.blog.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * @program: blog
 * @description: 系统资源
 * @author: xieweiwei
 * @create: 2018-09-30 16:54
 **/
@TableName("sys_rescource")
@Getter
@Setter
public class Rescource extends BaseEntity {


    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 文件名称
     */
    @TableField("file_name")
    private String fileName;

    @TableField("remote_name")
    private String remoteName;
    /**
     * 来源
     */
    private String source;
    /**
     * 资源网络地址
     */
    @TableField("web_url")
    private String webUrl;
    /**
     * 文件标识
     */
    private String hash;
    /**
     * 文件大小
     */
    @TableField("file_size")
    private String fileSize;
    /**
     * 文件类型
     */
    @TableField("file_type")
    private String fileType;

    @TableField("original_net_url")
    private String originalNetUrl;
    private Integer category;
    @TableField(exist = false)
    private String categoryName;

}
